package com.sunshine.springboot.service.user.impl;

import com.sunshine.springboot.bean.User;
import com.sunshine.springboot.mapper.UserInfoMapper;
import com.sunshine.springboot.service.user.IUserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Demo class
 *
 * @author WeiHong
 * @date 2018/8/17
 */
@Service
public class UserInfoServiceImpl implements IUserInfoService {

    @Autowired
    private UserInfoMapper userInfoMapper;


    @Override
    public List<User> findByUsername(String userName) {
        return userInfoMapper.findByUsername(userName);
    }

    @Override
    public int insert(User user) {
        return userInfoMapper.insert(user);
    }
}
